#ifndef WAITOBJECT_H_
#define WAITOBJECT_H_

#include <pthread.h>

enum waitType {
	PTHREAD = 1,
	READ = 2
};

class WaitObject {
public:
	WaitObject(int sockfd);
	WaitObject(pthread_mutex_t* mutex, pthread_cond_t* cond);
	virtual ~WaitObject();

	int type;
	pthread_mutex_t* mutex;
	pthread_cond_t* cond;
	int sockfd;
	char* buffer;
	int blength;

	pthread_cond_t* masterCond;
	pthread_mutex_t* masterMutex;
	unsigned int ID;
	unsigned int* returnID;
	bool* masterBool;

	int errnum;
};

#endif /* WAITOBJECT_H_ */
